home *** CD-ROM | disk | FTP | other *** search
/ Champak Vol A-4 / (Vol A-4) Vol. A4.iso / Games / puppy_red.swf / scripts / DefineButton2_140 / BUTTONCONDACTION on(release, keyPress Enter).as
Text File  |  2008-03-11  |  668b  |  33 lines

  1. on(release, keyPress "<Enter>"){
  2.    if(!click)
  3.    {
  4.       item1 = uitem1;
  5.       item2 = uitem2;
  6.       item3 = uitem3;
  7.       item4 = uitem4;
  8.       if(item2 == 1)
  9.       {
  10.          shoot = 3;
  11.       }
  12.       stg = 1;
  13.       _global.dead = 0;
  14.       click = 1;
  15.       i = 0;
  16.       (snd_startBtn = new Sound()).attachSound("click");
  17.       snd_startBtn.start();
  18.       _root.onEnterFrame = function()
  19.       {
  20.          trace(i);
  21.          i++;
  22.          if(i == 6)
  23.          {
  24.             itemOb.userTemp = 1;
  25.             delete i;
  26.             delete click;
  27.             _root.onEnterFrame = null;
  28.             gotoAndStop(9);
  29.          }
  30.       };
  31.    }
  32. }
  33.